import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  { path: '/login', component: () => import('../views/Login.vue') },
  { path: '/users', component: () => import('../views/Users.vue') },
  { path: '/scenic-spots', component: () => import('../views/ScenicSpots.vue') },
  { path: '/orders', component: () => import('../views/Orders.vue') },
  { path: '/buy', component: () => import('../views/BuyTicket.vue') },
  { path: '/', redirect: '/login' }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router 